let express=require('express');
let cors=require('cors');
let bp=require('body-parser');
let app=express();
app.use(cors());
app.use(bp.urlencoded({extended:false}));
app.use(bp.json());
app.get("/getReq",function (req,res) {
    console.log(req.query);
    res.json({msg:"ok"})
})
app.post("/postReq",function (req,res) {
    console.log(req.body);
    res.json({msg:"post-ok"})
})
app.listen(8989);